Restrict

annotation class Restrict(val min: Int = Int.MIN_VALUE, val max: Int = Int.MAX_VALUE)

Annotation-driven validation for Ints

Author

fzzyhmstrs

Since

0.2.0

Parameters

min

: Int - minimum allowable value, default to Int.MIN_VALUE

max

: Int - maximum allowable value, default to Int.MAX_VALUE

Properties

Link copied to clipboard
val max: Int
Link copied to clipboard
val min: Int